FROM golang:1.10-alpine3.7 as build
WORKDIR /app
ADD . /app
RUN cd /app && go build -o hygo

FROM alpine:3.7
WORKDIR /app
COPY --from=build /app/hygo /app/
ENTRYPOINT ./hygo